package cn.com.lms.business.learning.persistence.entity.vo;

import cn.com.lms.business.learning.persistence.entity.FbLearningStage;
import cn.com.lms.business.learning.persistence.entity.FbLearningStudent;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;
import java.util.List;

/*
 * @author liuwei
 * @date 2020/3/18 17:10
 * @desc 新增学习计划实体对象
 */
@Data
public class LearningSaveVo {
    /**
     * id
     */
    private Long id;

    /**
     * 计划名称
     */
    @Schema(description = "计划名称")
    private String planName;

    /**
     * 描述
     */
    @Schema(description = "描述")
    private String remark;

    /**
     * 完成时间
     */

    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd")
    @Schema(description = "完成时间")
    private Date finishTime;

    /**
     * 封面图片
     */
    @Schema(description = "封面图片")
    private String coverUrl;

    /**
     * 学分
     */
    @Schema(description = "学分")
    private int score;

    /**
     * 操作类型
     */
    @Schema(description = "操作类型")
    private Integer operationCode;


    /**
     * 学习阶段列表
     */
    @Schema(description = "学习阶段列表")
    private List<FbLearningStage> learningStageList;

    /**
     * 学习人员集合
     */
    @Schema(description = "学员集合")
    private List<FbLearningStudent> learningStudentList;

    /**
     * 部门集合
     */
    @Schema(description = "部门集合")
    private List<LearningPlanDeptInfo> learningPlanDeptInfo;

}
